package cn.source.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import cn.source.system.mapper.GkZytbDetailMapper;
import cn.source.system.domain.GkZytbDetail;
import cn.source.system.service.IGkZytbDetailService;

/**
 * 模拟志愿填报明细Service业务层处理
 * 
 * @author sourcebyte.vip
 * @date 2024-12-02
 */
@Service
public class GkZytbDetailServiceImpl implements IGkZytbDetailService 
{
    @Autowired
    private GkZytbDetailMapper gkZytbDetailMapper;

    /**
     * 查询模拟志愿填报明细
     * 
     * @param id 模拟志愿填报明细主键
     * @return 模拟志愿填报明细
     */
    @Override
    public GkZytbDetail selectGkZytbDetailById(String id)
    {
        return gkZytbDetailMapper.selectGkZytbDetailById(id);
    }

    /**
     * 查询模拟志愿填报明细列表
     * 
     * @param gkZytbDetail 模拟志愿填报明细
     * @return 模拟志愿填报明细
     */
    @Override
    public List<GkZytbDetail> selectGkZytbDetailList(GkZytbDetail gkZytbDetail)
    {
        return gkZytbDetailMapper.selectGkZytbDetailList(gkZytbDetail);
    }

    /**
     * 新增模拟志愿填报明细
     * 
     * @param gkZytbDetail 模拟志愿填报明细
     * @return 结果
     */
    @Override
    public int insertGkZytbDetail(GkZytbDetail gkZytbDetail)
    {
        return gkZytbDetailMapper.insertGkZytbDetail(gkZytbDetail);
    }

    public int insertGkZytbDetailList(List<GkZytbDetail> list){
        return gkZytbDetailMapper.insertGkZytbDetailList(list);
    }

    /**
     * 修改模拟志愿填报明细
     * 
     * @param gkZytbDetail 模拟志愿填报明细
     * @return 结果
     */
    @Override
    public int updateGkZytbDetail(GkZytbDetail gkZytbDetail)
    {
        return gkZytbDetailMapper.updateGkZytbDetail(gkZytbDetail);
    }

    /**
     * 批量删除模拟志愿填报明细
     * 
     * @param ids 需要删除的模拟志愿填报明细主键
     * @return 结果
     */
    @Override
    public int deleteGkZytbDetailByIds(String[] ids)
    {
        return gkZytbDetailMapper.deleteGkZytbDetailByIds(ids);
    }

    /**
     * 删除模拟志愿填报明细信息
     * 
     * @param id 模拟志愿填报明细主键
     * @return 结果
     */
    @Override
    public int deleteGkZytbDetailById(String id)
    {
        return gkZytbDetailMapper.deleteGkZytbDetailById(id);
    }

    public int deleteGkZytbDetailByZytbId(String id){
        return gkZytbDetailMapper.deleteGkZytbDetailByZytbId(id);
    }
}
